import { request } from '@umijs/max';

// 获取员工列表
export async function getEmployeeList(params: {
  pageSize?: number;
  current?: number;
  keyword?: string;
  memberId: number;
}) {
  return request('http://127.0.0.1:8990/dataAnalysis/card/getCards', {
    method: 'POST',
    data: { memberId: params.memberId || 100067 },
  });
}

// 获取客户列表
export async function getMembers(params: {
  departName: string;
}) {
  return request('http://127.0.0.1:8990/dataAnalysis/card/getMembers', {
    method: 'POST',
    data: { departName: params.departName },
  });
}

// 删除员工
export async function removeEmployee(ids: string[]) {
  return request('/api/employee', {
    method: 'DELETE',
    data: { ids },
  });
}